package com.hexacta.hrs.report.dtos;

public class StaffingPendingRequirementsReportDTO implements Comparable<StaffingPendingRequirementsReportDTO> {

    private String client;

    private String project;

    private String seniority;

    private String dateFrom;

    public String getDateFrom() {
        return dateFrom;
    }

    public void setDateFrom(final String dateFrom) {
        this.dateFrom = dateFrom;
    }

    /**
     * @return the client
     */
    public String getClient() {
        return client;
    }

    /**
     * @param client
     *            the client to set
     */
    public void setClient(final String client) {
        this.client = client;
    }

    /**
     * @return the project
     */
    public String getProject() {
        return project;
    }

    /**
     * @param project
     *            the project to set
     */
    public void setProject(final String project) {
        this.project = project;
    }

    /**
     * @return the seniority
     */
    public String getSeniority() {
        return seniority;
    }

    /**
     * @param seniority
     *            the seniority to set
     */
    public void setSeniority(final String seniority) {
        this.seniority = seniority;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int compareTo(final StaffingPendingRequirementsReportDTO arg0) {
        int ret = getProject().compareTo(arg0.getProject());

        if (ret == 0) {
            ret = getSeniority().compareTo(arg0.getSeniority());
        }

        return ret;
    }
}
